<!doctype html> 
<html> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head> 
    <meta charset="utf-8">
    <script src="//pv.sohu.com/cityjson?ie=utf-8"></script>
    <script src="js/av-min.js"></script>
    <script src="js/ip.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>赞助青章浚</title>
    <script>
    var setting = {
        // 在以下双引号中粘贴QQ钱包收款链接
        qqUrl: "https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=2634221203&ac=CAEQk42M6AkYobbV9wU%3D_xxx_sign&n=%E9%9D%92%E7%AB%A0%E6%B5%9A&f=wallet",
        
        // 在以下双引号中粘贴微信收款链接 wiupan
        // wechatUrl: "wxp://f2f0FEilRt6YbWxxvXOQRfWDJ5_HaQeG3KYp",
        // 在以下双引号中粘贴微信收款链接 一斗米
        wechatUrl: "wxp://f2f0R3zPy8tBfgM8LDnkowLlEvcmp2VBS8nh",
        
        // 在以下双引号中粘贴支付宝收款链接
        aliUrl: "https://qr.alipay.com/fkx04136crbluc9loqfcj63",
        
        // 用于动态生成二维码的API，不需要修改。
         qrcodeApi: "http://qr.liantu.com/api.php?text="    
        // qrcodeApi: "http://www.kuaizhan.com/common/encode-png?large=true&data="    
        // qrcodeApi: "https://www.zhihu.com/qrcode?url="

        //备用二维码api：
        // qrcodeApi: "http://s.jiathis.com/qrcode.php?url="
        // qrcodeApi: "http://www.kuaizhan.com/common/encode-png?large=true&data="
        // qrcodeApi: "http://b.bshare.cn/barCode?site=weixin&url="
        // qrcodeApi: "http://pan.baidu.com/share/qrcode?w=150&h=150&url="
        
    }
    </script>
    
    <style>
    * {
        margin: 0; padding: 0;
        font-family: Microsoft yahei;
    }
    body {
        background-color: #fff;
    }
    .code-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding-bottom: 1px;
        display: none;
        background-color: #5c92ef;
    }
    .code-title {
        height: 100px;
        background-color: #f2f2f2;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 50%;
    }
    .code-area {
        text-align: center;
    }
    .code-area>img {
        margin: 80px 0;
        width: 60%;
        min-width: 100px;
    }
    .code-footer {
        height: 80px;
        text-align: center;
        background-color: #fff;
        color: #666;
        line-height: 80px;
        font-size: 20px;
        margin: -2px 2px 2px 2px;
    }
    
    #code-all>.code-title {
        background-image: url("");
    }
    
    #code-qq {
        background-color: #54b4ef;
    }
    #code-qq>.code-title {
        background-image: url("");
    }
    
    #code-wechat {
        background-color: #54bc6e;
    }
    #code-wechat>.code-title { 
        background-image: url("");
        
    }
    </style>    

</head>
<body>
    <!-- 万能收款码展示区域 -->
    <div class="code-item" id="code-all">
        <div class="code-title"></div>
        <div class="code-area">
            <br>
            <br>
            <h1 style="color:#FFF">赞助青章浚</h1>
            <img id="page-url" src="">
        </div>
        <div class="code-footer">扫码赞助-支持【支付宝、微信、QQ】</div>
    </div>
    
    <!-- QQ钱包二维码展示区域 -->
    <div class="code-item" id="code-qq">
        <div class="code-title"></div>
        <div class="code-area">
            <img id="qq-url" src="">
        </div>
        <div class="code-footer">长按识别二维码向我赞助【QQ专用】</div>
    </div>
    
    <!-- 微信二维码展示区域 -->
    <div class="code-item" id="code-wechat">
        <div class="code-title"></div>
        <div class="code-area">
            <img id="wechat-url" src="">
        </div>
        <div class="code-footer">长按识别二维码向我赞助【微信专用】</div>
    </div>
    
    <script>
    if(navigator.userAgent.match(/Alipay/i)) {
        // 支付宝
        window.location.href = setting.aliUrl; 
    } else if(navigator.userAgent.match(/MicroMessenger\//i)) {
        // 微信
        document.getElementById("wechat-url").src = setting.qrcodeApi + urlEncode(setting.wechatUrl);
        document.getElementById("code-wechat").style.display = "block";
    } else if(navigator.userAgent.match(/QQ\//i)) {
        // QQ
        document.getElementById("qq-url").src = setting.qrcodeApi + urlEncode(setting.qqUrl);
        document.getElementById("code-qq").style.display = "block";
    } else {
        // 其它，显示“万能码”
        document.getElementById("page-url").src = setting.qrcodeApi + urlEncode(window.location.href);
        document.getElementById("code-all").style.display = "block";
    }
    
    /*****************************************
     * url编码函数
     * 输入参数：待编码的字符串
     * 输出参数：编码好的
     ****************************************/
    function urlEncode(String) {
        return encodeURIComponent(String).replace(/'/g,"%27").replace(/"/g,"%22");	
    }
    </script>
<br>
<p style="font-size:30px;text-align:center;color:#F00;">感谢您的支持！</p>
</body>
</html>
